using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SPCAMLEditor
{
    public partial class NewViewDialog : Form
    {
        public NewViewDialog()
        {
            InitializeComponent();

            FormBorderStyle = FormBorderStyle.FixedSingle;

            
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            this.TxtViewName.Focus();
        }

        public string ViewName
        {
            get
            {
                return this.TxtViewName.Text.Trim();
            }
        }

        public bool Hidden
        {
            get
            {
                return this.CkHidden.Checked;
            }
        }

        private void BtnOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        private void BtnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }

        private void NewViewDialog_Load(object sender, EventArgs e)
        {

        }
    }
}